<template>
	<view class="gy-timeline" ref="timeline">
		<slot></slot>
	</view>
</template>

<script lang="ts" setup>

    import {
    	ref,
    	onMounted,
		getCurrentInstance
    } from "vue";
	
	const { proxy } : any = getCurrentInstance();
	
    const timeline: any = ref(null)

    onMounted(() => {
        let children = [];
        // #ifdef MP-WEIXIN
        children = proxy.$children;
        // #endif

        for (let i = 0; i < children.length; i++) {
        	if(i !== children.length - 1){
        		children[i].setLineFn();
        	}
        }
    });
</script>

<style lang="scss" scoped>
	.gy-timeline{
	    
	}
</style>